package com.fortune.dao;

import com.fortune.dto.in.dStoreIn.DStoreInitProduceDto;
import com.fortune.dto.in.dStoreIn.DstoreInListDto;
import com.fortune.dto.in.dStoreIn.DstoreInitAddDto;
import com.fortune.dto.in.dStoreIn.DstoreInitEditDto;
import com.fortune.dto.in.dealerWarehouseReceiptWarehouse.ConfirmStorage;
import com.fortune.dto.in.dealerWarehouseReceiptWarehouse.DealerWarehouseReceiptWarehouseDto;
import com.fortune.vo.dStorage.DstorageInfo;
import com.fortune.vo.dStoreIn.DinitDetails;
import com.fortune.vo.dStoreIn.DstoreInInfo;
import com.fortune.vo.productStockDetailInfo.ProductStockDetailInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2018/5/26 0026.
 */
public interface DstoreInDao {

    List<DstoreInInfo> findStoreList(@Param("dstoreInListDto")DstoreInListDto dstoreInListDto,@Param("mid")String mid,@Param("did")String did);

    int findStoreListCount(@Param("mid")String mid,@Param("did")String did);

    int queryDInitInfoIsExist(@Param("mid")String mid,@Param("did")String did,@Param("num")String num,@Param("storeId")String storeId);

    int addDinitInfo(@Param("mid")String mid, @Param("did")String did,@Param("id")String id,@Param("addDto")DstoreInitAddDto addDto);

    int addInitDetailInfo(@Param("mid")String mid,@Param("did")String did,@Param("id")String id,@Param("list") List<DStoreInitProduceDto> list);

    int editDinitInfo(@Param("mid")String mid, @Param("did")String did,@Param("editDto")DstoreInitEditDto editDto);

    int deleteDinitDetailInfo(@Param("mid") String mid,@Param("did")String did,@Param("id") String id);

    int editInitDetailInfo(@Param("mid")String mid,@Param("did")String did,@Param("list") List<DStoreInitProduceDto> list,@Param("id") String id);

    int deleteDInitInfo(@Param("mid")String mid,@Param("did")String did,@Param("id")String id);

    DinitDetails queryStoreInitDetails(@Param("mid")String mid,@Param("did")String did,@Param("id")String id);

    int updateStoreInit(@Param("mid")String mid,@Param("did")String did,@Param("id")String id);

    List<ProductStockDetailInfo> queryProductStock(@Param("mid")String mid,@Param("did")String did,@Param("id")String id);

    List<DstorageInfo> findStorageList(@Param("dealerDto") DealerWarehouseReceiptWarehouseDto dealerDto,@Param("mid") String mid,@Param("did") String did);

    int findStorageListCount(@Param("dealerDto") DealerWarehouseReceiptWarehouseDto dealerDto,@Param("mid") String mid,@Param("did") String did);

    String findStorageID(@Param("num")String num,@Param("mid")String mid,@Param("did")String did);

    int confireStorage(@Param("confirmStorage")ConfirmStorage confirmStorage, @Param("mid")String mid, @Param("did")String did,@Param("id")String id,@Param("chickId")String chickId);
}
